package com.llb666.shop.payment.infrastructure.conver;

import com.llb666.shop.payment.domain.entity.PayOrders;
import com.llb666.shop.payment.infrastructure.po.PayOrdersPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * 支付订单的实体转换器.
 *
 * @author llb666
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PayOrdersCvt {
    PayOrdersCvt INSTANCE = Mappers.getMapper(PayOrdersCvt.class);

    PayOrdersPo do2po(PayOrders payOrders);

    PayOrders po2do(PayOrdersPo payOrdersPo);
}
